package net.icontents.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import net.icontents.beans.Catalog;
import net.icontents.dao.CatalogDao;

@Repository
public class CatalogDaoImpl extends BaseORMDaoImpl<Catalog> implements CatalogDao {

	public CatalogDaoImpl(){
		setNamespace("Catalog");
	}

	@Override
	public List<Catalog> selectSubCatalog(int parentId) {
        Map<String,Object> params = new HashMap<String,Object>(2);
        params.put("parentId",parentId);
        return queryForEntryList("selectSubCatalog",params);
	}
}
